{% if run.status == 'diff_found' %}
    {% set run_status='error' %}
{% elif run.status == 'diff_not_found' %}
    {% set run_status='info' %}
{% elif run.status == 'needs_diff' %}
    {% set run_status='warning' %}
{% elif run.status == 'diff_approved' %}
    {% set run_status='info' %}
{% elif run.status == 'no_diff_needed' %}
    {% set run_status='normal' %}
{% else %}
    {% set run_status='normal' %}
{% endif %}

{% if alert_wrapper %}
<div class="alert alert-{{ run_status }}">
    <div class="row-fluid no-min-height">
        <div class="span4">
            <strong>
{% endif %}

<span class="text-{{ run_status }} test-result-mark" {% if inline_style -%}
    {%- if run.status == 'diff_found' -%}
        style="color: #b94a48"
    {%- elif run.status == 'diff_not_found' -%}
        style="color: #3a87ad"
    {%- endif -%}
{%- endif -%}
>
    {% if run.status == 'diff_found' %}
        X
    {% elif run.status == 'diff_not_found' %}
        &#x2713;
    {% elif run.status == 'diff_approved' %}
        &#x2713;
    {% elif run.status == 'needs_diff' %}
        ?
    {% else %}
        &ndash;
    {% endif %}
</span>
&nbsp;
<span>
    {% if run.status == 'diff_found' %}
        Diff found
    {% elif run.status == 'diff_not_found' %}
        Same
    {% elif run.status == 'diff_approved' %}
        Diff found and approved
    {% elif run.status == 'needs_diff' %}
        Diff pending
    {% elif run.status == 'no_diff_needed' %}
        Diff not required
    {% else %}
        Data pending
    {% endif %}
</span>

{% if alert_wrapper %}
            </strong>
        </div>
    {% if run.status in ('data_pending', 'needs_diff') and run_detail %}
        <div class="span4 text-center">
            {{ run_detail }}
        </div>
    {% endif %}
    </div>
</div>
{% endif %}
